//
//  KFPointUtil.h
//  Imp
//
//  Created by Alex Carter on 15/06/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KFConstants.h"

namespace KFPointUtil {

    KFFloat crossProduct(KFPoint p1,KFPoint p2) ;
    KFFloat dotProduct(KFPoint p1,KFPoint p2);
    KFFloat length(KFPoint p);
    KFFloat squareLength(KFPoint p) ;
    KFPoint add(KFPoint a,KFPoint b);
    KFPoint sub(KFPoint a,KFPoint b);
    KFPoint mul(KFPoint p,KFFloat mag);
    KFPoint inverse(KFPoint p);
    KFPoint unit(KFPoint p)  ;
    float measureAngle(KFPoint a,KFPoint b);    
};
